<?php

define('basePath', $_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . 'abd');
define('baseUrl', '/abd');

$request_ajax = isset($_SERVER ['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';
//extesion accepted in challenges and solutions
$extensions = array('zip', 'txt', 'mp3', 'png');
$strExtensions = implode(", ", $extensions);


$expPass = '/(?!^[0-9]*$)(?!^[a-zA-Z]*$)^([a-zA-Z0-9]{6,12})$/';
$expEmail = '/[\w-\.]{3,}@([\w-]{2,}\.)*([\w-]{2,}\.)[\w-]{2,4}/';

include('utils.php');
session_start();
?>
